package org.example.service.impl;

import org.example.domain.CarDictType;
import org.example.mapper.CarDictTypeMapper;
import org.example.service.CarDictTpeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CarDictTypeServiceImpl implements CarDictTpeService {

    @Autowired
    private CarDictTypeMapper carDictTypeMapper;

    @Override
    public List<CarDictType> list(CarDictType carDictType) {
        return carDictTypeMapper.list(carDictType);
    }

    @Override
    public boolean add(CarDictType carDictType) {
        return carDictTypeMapper.add(carDictType);
    }

    @Override
    public boolean update(CarDictType carDictType) {
        return carDictTypeMapper.update(carDictType);
    }

    @Override
    public boolean delete(Integer dictId) {
        return carDictTypeMapper.delete(dictId);
    }

    @Override
    public List<CarDictType> listAll() {
        return carDictTypeMapper.listAll();
    }

    @Override
    public void insertBach(List<CarDictType> cacheList) {
        carDictTypeMapper.insertBach(cacheList);
    }

    @Override
    public List<CarDictType> selectTypeById(Integer dictId) {
        return carDictTypeMapper.selectTypeById(dictId);
    }

    @Override
    public List<CarDictType> selectTypeByType(String dictType) {
        return carDictTypeMapper.selectTypeByType(dictType);
    }
}
